//
//  AppDelegate.swift
//  BadAir
//
//  Created by D on 2018/2/27.
//  Copyright © 2018年 D. All rights reserved.
//

import UIKit
import Bugly

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?
    let viewController = BAHomeViewController()
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
        
        Bugly.start(withAppId: "68424ec6e3")
        
        let navController = UINavigationController(rootViewController: viewController)
        navController.navigationBar.isHidden = true
//        UIApplication.shared.setStatusBarHidden(true, with: .none)
        
        window = UIWindow()
        window?.frame = screenBounds
        window?.backgroundColor = UIColor.white
        window?.rootViewController = navController
        window?.makeKeyAndVisible()
        
        return true
    }

    

    func applicationDidBecomeActive(_ application: UIApplication) {
        viewController.loadData()
    }


}

